package com.sanyou.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "maintain_history")
public class MaintainHistory {
    @Id
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id; //id主键

    @Column(name="product_id")
    private Integer productId; //阴极板Id

    @Column(name = "product_code")
    private String productCode; //阴极板编码

    @Column(name = "maintain_type")
    private Integer maintainType; //维修类型

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "maintain_time")
    private Date maintainTime; //维修开始时间

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "maintain_end_time")
    private Date maintainEndTime; //维修结束时间

    @Column(name = "maintainer_id")
    private String maintainerId; //维修人员id

    @Column(name = "maintainer_name")
    private String maintainerName; //维修人员姓名

    @Column(name = "initiator_id")
    private String initiatorId; //发起维修人员id

    @Column(name = "initiator_name")
    private String initiatorName; //发起维修人员姓名
}
